package com.cssw.fyzb.busi.service.appeal;

import com.ydn.dbframe.plugin.activerecord.Page;
import com.cssw.fyzb.core.model.dodb.Appeal;
import com.cssw.fyzb.core.model.dodb.AppealType;

import java.util.List;

public interface AppealService {

    /**
     * 查询申述
     *
     * @return java.util.List<com.cssw.fyzb.core.model.dodb.Appeal>
     * @Param [userId]
     **/
    Page<Appeal> listAppeal(Long userId, int pageNumber, int pageSize);

    /**
     * 查询申述详情
     *
     * @return com.cssw.fyzb.core.model.dodb.Appeal
     * @Param [ appealId]
     **/
    Appeal getAppeal(Long appealId);

    /**
     * 申述    用户id  申述类型     联系电话/QQ 申述 备注   申述状态
     *
     * @return java.lang.Long
     * @Param [userId, appealType, contact, appeal, appealAttach, status]
     **/
    Long saveAppeal(Long userId, String appealType, String contact, String appeal, String appealAttach, String status);

    /**
     * 申述类型
     *
     * @return java.util.List<com.cssw.fyzb.core.model.dodb.AppealType>
     * @Param []
     **/
    List<AppealType> listAppealType();

}
